IF EXISTS ( SELECT  *
            FROM    dbo.sysobjects
            WHERE   id = OBJECT_ID(N'CGO_TriviaResultStatus')
                    AND OBJECTPROPERTY(id, N'IsTable') = 1 ) 
  BEGIN
    DROP TABLE dbo.CGO_TriviaResultStatus
  END


CREATE TABLE [dbo].[CGO_TriviaResultStatus]
  (
    [StatusID] [int] NOT NULL IDENTITY(1, 1),    
    [StatusCode] [nvarchar] (100) NOT NULL
  )
ON
  [PRIMARY]
GO
ALTER TABLE [dbo].[CGO_TriviaResultStatus] ADD CONSTRAINT [PK_CGO_TriviaResultStatus] PRIMARY KEY CLUSTERED  ([StatusID]) ON [PRIMARY]
GO

INSERT INTO dbo.CGO_TriviaResultStatus ( StatusCode ) VALUES  ( 'NEW')
INSERT INTO dbo.CGO_TriviaResultStatus ( StatusCode ) VALUES  ( 'COMPLETED')
INSERT INTO dbo.CGO_TriviaResultStatus ( StatusCode ) VALUES  ( 'DEPRECATED')